package com.qf.main.pharmacy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.qf.common.base.result.ResponseResult;
import com.qf.main.pharmacy.common.qo.PharmacyQO;
import com.qf.main.pharmacy.common.vo.PharmacyInventoryVo;
import com.qf.main.pharmacy.common.vo.PharmacyVO;
import com.qf.main.pharmacy.mapper.PharmacyInventoryMapper;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author chengqiang
 * @Create 2024-02-04-12:32
 * @Description:
 */
public interface PharmacyService {
    // 查看药品列表
    PageInfo<PharmacyVO> listPharmacy(Integer pageNum, Integer pageSize, String pharmacyName,Integer priceSort,Integer dateSort,Integer types,Integer delStatus);
    PageInfo<PharmacyVO> listTypesPharmacy(Integer pageNum, Integer pageSize, int Types,Integer delStatus);

    PageInfo<PharmacyVO> listPharmacyByExamine(Integer pageNum, Integer pageSize,Integer examineStatus);

    PharmacyVO getPharmacy (Integer id);
    Integer savePharmacy(PharmacyQO pharmacyQO);

    Integer modifyPharmacy(PharmacyQO pharmacyQO);

    Integer removePharmacy(Integer id);
    String uploadImage(MultipartFile multipartFile) ;
    PageInfo<PharmacyInventoryVo> listInventory(Integer pageNum, Integer pageSize,Integer id);
    Integer reduceInventory( Integer orderMallId,Integer num);




}
